package club.terroir.client.producteur;

import java.io.Serializable;
import java.util.Date;

import com.google.gwt.i18n.client.DateTimeFormat;

public class Achat implements Serializable{

	
	private static final long serialVersionUID = 1L;
	String id;
	String idContact;
	String label;
	String comment;
	Date date = new Date();
	
	static DateTimeFormat fmt = DateTimeFormat.getFormat("h:mm  EEEE, dd  MMMM  yyyy");
	
	public Achat() {
		super();
	}



	public Achat(String id, String idContact, String label, String comment) {
		super();
		this.id = id;
		this.idContact = idContact;
		this.label = label;
		this.comment = comment;
	}
	
	public String getDateStr() {
		return fmt.format(date);
	}
}
